package com.hupu.jrs.ui.messagelist

import com.hupu.jrs.bean.Message
import com.hupu.jrs.ui.BasePresenter
import com.hupu.jrs.ui.BaseView

/**
 * Created by sll on 2016/5/11.
 */
interface MessageListContract {
    interface View : BaseView {
        fun showLoading()

        fun hideLoading()

        fun renderMessageList(messages: MutableList<Message>)

        fun onRefreshCompleted()

        fun onLoadCompleted(haMore: Boolean)

        fun onError()

        fun onEmpty()

        fun showContentUi(tid: String, pid: String, page: Int)

        fun removeMessage(message: Message)
    }

    interface Presenter : BasePresenter<View> {
        fun onMessageListReceive()

        fun onRefresh()

        fun onReload()

        fun onLoadMore()

        fun onMessageClick(message: Message)
    }
}
